package flst.ipiweb.common;

import java.sql.Date;
import java.util.Random;

public class PaiementCB extends Paiement {

	private int id;
	private String number;
	private String owner;
	private String cryptogram;
	private Date validity;

	public PaiementCB() {
		Random r = new Random();
		this.setId(r.nextInt(Integer.MAX_VALUE));
	}

	public int getInfoId(){
		return super.getId();
	}
	
	public void setInfoId(int id){
		super.setId(id);
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public String getCryptogram() {
		return cryptogram;
	}

	public void setCryptogram(String cryptogram) {
		this.cryptogram = cryptogram;
	}

	public Date getValidity() {
		return validity;
	}

	public void setValidity(Date validity) {
		this.validity = validity;
	}

}
